package com.punch.common.vo.user.menu;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class SimpleMenuTreeVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单id.
     */
    @ApiModelProperty(name = "menuId", notes = "菜单id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long menuId;


    /**
     * 菜单名称.
     */
    @ApiModelProperty(name = "name", notes = "菜单名称")
    private String title;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<SimpleMenuTreeVO> childList;

}
